package com.wish.service.impl;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.wish.dto.TCwPayOrderDto;
import com.wish.entity.TCwPayOrder;
import com.wish.entity.TJrFactoringDetail;
import com.wish.mapper.TCwPayOrderMapper;
import com.wish.service.ITCwPayOrderService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 支付订单表（支付流水信息） 服务实现类
 * </p>
 *
 * @author 五组
 * @since 2021-04-09
 */
@Service
public class TCwPayOrderServiceImpl extends ServiceImpl<TCwPayOrderMapper, TCwPayOrder> implements ITCwPayOrderService {

    @Autowired
    TCwPayOrderMapper tCwPayOrderMapper;

    @Override
    public PageInfo<TCwPayOrder> getlist(TCwPayOrderDto tCwPayOrderDto) {
        PageHelper.startPage(tCwPayOrderDto.getPageNum(),tCwPayOrderDto.getPageSize());
        List<TCwPayOrder> list =  tCwPayOrderMapper.getlist(tCwPayOrderDto);
        for (TCwPayOrder a:list
        ) {
            System.out.print(a.getId());
        }
        System.out.print(list+"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa");
        return new PageInfo<>(list);
    }
}
